<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            padding: 0;
            margin: 0;
            caret-color: transparent;
        }
        body {
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
        }
        .box1 {
            width: 70%;
            height: 60vh;
            border: 3px #ccc dashed;
        }
        .box1 img {
            width: 200px;
        }
    </style>
</head>
<body>
    <div class="box1">
        
    </div>
</body>
<script>
    let box1 = document.getElementsByClassName("box1")[0];
    fetch("http://192.168.42.166:3000/show")
        .then(res => res.json())
        .then(res => {
            console.log(res);
            res.forEach(item => {
                let img = document.createElement("img");
                img.src = "http://192.168.42.166:3000/pic/" + item;
                box1.appendChild(img);
            })
        })
</script>
</html>